package Decorator;

import Component.Component;

public class DecoratorItalic extends  Decorator {

    public DecoratorItalic(Component initComponent) {
        super(initComponent);
    }

    @Override
    public void operation(String outText) {
        super.operation(outText);
        AddItalicStyle();

    }

    private void AddItalicStyle() {
        System.out.println("斜体样式");
    }
}
